home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.4 Applications 1997 August / SGI IRIX 6.4 Applications 1997 August.iso / dist / InPerson.idb / usr / lib / InPerson / inpinvite.z / inpinvite
Encoding:
Text File  |  1996-12-06  |  639 b   |  45 lines

  1. #!/bin/sh
  2. SUBJECT=""
  3. WBFILE=""
  4. TO=""
  5. while [ "$1" != "" ]
  6. do
  7.    case "$1" in 
  8.     "-to")
  9.           TO=$2;
  10.           shift;
  11.     ;;
  12.         "-subject")
  13.       if [ "$2" != "-to" -a "$2" != "-wbfile" ] 
  14.       then
  15.             SUBJECT=$2;
  16.             shift;
  17.       fi
  18.     ;;
  19.         "-wbfile")
  20.       WBFILE=$2;
  21.           shift;
  22.     ;;
  23.     *)
  24.       TO="${TO} $1";
  25.     ;;
  26.    esac;
  27.    if [ "$1" != "" ]
  28.    then
  29.      shift;
  30.    fi
  31. done
  32.  
  33. case "${TO}" in
  34.     "-subject" | "-wbfile" | "")
  35.     echo "No InPerson address specified.\n";
  36.     exit 1;
  37.     ;;
  38. esac;
  39.    
  40. if  [ "${WBFILE}" != "" ]
  41. then
  42.   /usr/lib/InPerson/inpcontrol "call -f $WBFILE $TO";
  43. else
  44.   /usr/lib/InPerson/inpcontrol "call $TO";
  45. fi